﻿using System;
using System.Collections.Generic;
using SchemaExplorer;
using System.Text;

namespace SaturniLibrary.CodeGenerate
{
    public class Interceder
    {
        /// <summary>
        /// 是否是系统辅助列，比如CreeateDate和UpdateDate
        /// </summary>
        /// <param name="column"></param>
        /// <returns></returns>
        public static bool IsOverWordColumn(ColumnSchema column)
        {
            return IsOverWordColumn(column.Name);
        }

        public static bool IsOverWordColumn(string columnName)
        {
            return "row_create_date".Equals(columnName, StringComparison.OrdinalIgnoreCase)
                || "row_update_date".Equals(columnName, StringComparison.OrdinalIgnoreCase);
        }
    }
}
